package com.keshan.mapper;

import com.keshan.pojo.Heartrate;
import com.keshan.pojo.HeartrateDayAvg;
import com.keshan.pojo.HeartrateExample;

import java.util.Date;
import java.util.List;

import com.keshan.pojo.HeartrateHide;
import org.apache.ibatis.annotations.Param;

public interface HeartrateMapper {
    int countByExample(HeartrateExample example);

    int deleteByExample(HeartrateExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Heartrate record);

    int insertSelective(Heartrate record);

    List<Heartrate> selectByExample(HeartrateExample example);

    List<HeartrateHide> selectHideByExample(HeartrateExample example);


    Heartrate selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Heartrate record, @Param("example") HeartrateExample example);

    int updateByExample(@Param("record") Heartrate record, @Param("example") HeartrateExample example);

    int updateByPrimaryKeySelective(Heartrate record);

    int updateByPrimaryKey(Heartrate record);

    List<HeartrateDayAvg> selectEverydayAvg(@Param("beginTime")Date beginTime,
                                            @Param("endTime")Date endTime,
                                            @Param("username")String username);

}